package com.sxdz.controller.service.program

import com.sxdz.controller.mapper.TProgramInfoMapper
import com.sxdz.controller.service.BaseService
import com.sxdz.controller.service.IBaseService
import com.sxdz.models.TProgramInfo
import com.sxdz.models.common.RollPage
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/**
 *  Created by andy on 2016/8/3.
 */

@Service
@CompileStatic
@TypeChecked
class ProgramService extends BaseService implements IProgramService {


    private TProgramInfoMapper tProgramInfoMapper;

    @Autowired
    void setTProgramInfoMapper(TProgramInfoMapper tProgramInfoMapper) {
        this.tProgramInfoMapper = tProgramInfoMapper
        super.baseMapper=tProgramInfoMapper
    }


    /**
     * ��ѯ���еĽ�Ŀ��Ϣ
     */
    @Override
    List<TProgramInfo> selectByAllProgramInfo() throws Exception {

        return tProgramInfoMapper.selectByAllProgramInfo();
    }

    @Override
    RollPage findListByProgram(Integer pageNum, Integer pageSize) throws Exception {
        return null
    }

    @Override
    TProgramInfo selectByAllById(String pid) {
        tProgramInfoMapper.selectByPrimaryKey(pid);
    }

    @Override
    Long addBasic(def Object obj) throws Exception {
        return null
    }

    @Override
    void modifyBasic(def Object obj) throws Exception {

    }

    @Override
    void delBasic(def Object obj) throws Exception {

    }
}
